﻿using Microsoft.EntityFrameworkCore;

namespace Devonline.AspNetCore;

/// <summary>
/// excel 导入导出操作的服务
/// </summary>
/// <typeparam name="TDbContext">数据库上下文</typeparam>
/// <typeparam name="TKey">键类型</typeparam>
public interface IExcelService<TDbContext, TKey> : IExcelExportService, IExcelImportService<TDbContext, TKey> where TDbContext : DbContext where TKey : IConvertible { }

/// <summary>
/// excel 导入导出操作的服务
/// </summary>
/// <typeparam name="TDbContext">数据库上下文</typeparam>
public interface IExcelService<TDbContext> : IExcelService<TDbContext, string> where TDbContext : DbContext { }